package com.uenpay.im.ui.old.activity.attendance;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.qiyunxin.android.http.utils.Utils;
import com.uenpay.im.IMApplication;
import com.uenpay.im.R;
import com.uenpay.im.ui.base.BaseActivity;

/**
 * @author SL
 * @created 2016-3-16 下午8:55:44
 * @copyRight http://www.qiyunxin.com
 * @function 选择签到类型
 */
public class ChooseAttendanceTypeActivity extends BaseActivity {

	private int entid;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		IMApplication.getInstance().addActivity(this);
		setContentView(R.layout.activity_choose_attendace_type_layout);
		entid = getIntent().getIntExtra("entid", -1);
		initView();
		backListener();
		initListener();
	}

	@Override
	protected void initView() {
		((TextView) findViewById(R.id.title_textview))
				.setText(R.string.statistics);
	}

	@Override
	protected void initListener() {
		findViewById(R.id.field_layout).setOnClickListener(
				new OnClickListener() {

					@Override
					public void onClick(View arg0) {
						// TODO

					}
				});
		findViewById(R.id.sign_inand_out_layout).setOnClickListener(
				new OnClickListener() {

					@Override
					public void onClick(View arg0) {
						Bundle bundle = new Bundle();
						bundle.putInt("entid", entid);
						Utils.startActivity(ChooseAttendanceTypeActivity.this,
								AttendanceListActivity.class, bundle);

					}
				});
	}

}
